package com.lin.cms.service;

import java.util.List;

import com.lin.cms.criteria.ChannelCriteria;
import com.lin.cms.domain.Channel;

public interface ChannelService{
	
	Channel selectByPrimaryKey(Integer channelId);
	
	List<Channel> selectByCriteria(ChannelCriteria criteria);
	
	int deleteByPrimaryKey(Integer channelId);
	
	int deleteByCriteria(ChannelCriteria criteria);
	
	int insert(Channel channel);
	
	int updateByPrimaryKeySelective(Channel channel);
	
	int updateByPrimaryKey(Channel channel);
	
	List<Channel> selectByPage(ChannelCriteria criteria);
	
	int countByCriteria(ChannelCriteria criteria);
	
	public List<Channel> getTopList(Integer siteId, boolean hasContentOnly);
	
	public List<Channel> getChildList(Integer parentId, boolean hasContentOnly);
	
}
